import { xsEntity } from './commentity';
import { Column, Entity, ManyToOne } from 'typeorm';
import { OrderEntity } from './order';

/**
 * 描述
 */
@Entity()
export class OrderitemEntity extends xsEntity {

    @ManyToOne(type => OrderEntity, author => author.foodes)
    pid: OrderEntity;

    @Column({ comment: '价格' })
    price: string;
    @Column({ comment: '商品名称' })
    des: string;

    @Column({ comment: '数量' })
    num: string;
    @Column({ comment: '商品图片' })
    url: string;
    @Column({ comment: '一杯,常规,不去料' })
    sku: string;

}
